package spring.cloud.tasks.common.nodepaths;

import spring.cloud.tasks.common.Symbols;

public class TaskInstanceManageNodePaths {
    public static final String ROOT = Symbols.SLASH + "taskInstanceManage";

    public static String getTaskInstancesStopNodePath() {
        return ROOT + Symbols.SLASH + "stop";
    }

    public static String getTaskInstanceStopNodePath(final String taskId, String taskInstanceId) {
        return ROOT + Symbols.SLASH + "stop" + Symbols.SLASH + taskId + Symbols.DOT + taskInstanceId;
    }

    public static String getTaskInstanceRestartNodePath(final String taskId, String taskInstanceId) {
        return ROOT + Symbols.SLASH + "restart" + Symbols.SLASH + taskId + Symbols.DOT + taskInstanceId;
    }
}
